package com.zwj.rms.controller;


import com.zwj.rms.bo.OperateBo;
import com.zwj.rms.service.SysOperateService;
import com.zwj.rms.vo.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 操作表 前端控制器
 * </p>
 *
 * @author zwj
 * @since 2021-09-15
 */
@RestController
@RequestMapping("/operate")
public class SysOperateController {
    private final SysOperateService sysOperateService;

    public SysOperateController(SysOperateService sysOperateService) {
        this.sysOperateService = sysOperateService;
    }

    @ApiOperation(value = "条件查询菜单", notes = "条件查询菜单")
    @PostMapping("/selectOperate")
    public Result selectDept(@RequestBody OperateBo operateBo) {
        return sysOperateService.selectOperate(operateBo);
    }

    @ApiOperation(value = "删除菜单", notes = "删除菜单")
    @PostMapping("/deleteOperate")
    public Result deleteOperate(@RequestBody OperateBo operateBo) {
        return sysOperateService.deleteOperate(operateBo);
    }
}

